NumberFormat Property Example

This example formats the second column in a DataGrid control as a long date:

Private Sub Command1_Click ()
   DataGrid1.Columns(1).NumberFormat = "long date"
End Sub